#ifndef __VCD_WIFI_H__
#define __VCD_WIFI_H__

#include <gtk/gtk.h>

G_BEGIN_DECLS

typedef struct node
{
	char uuid[60];
	struct node *next;
} Node, *pNode;

enum wifi_state {

    CLOSE = 1,
    DISCONNECT,
    CONNECTING,
    CONNECTED,
};

void get_wifi_passwd(GtkWidget *entry);
void btn_wifi_start_toggled(GtkToggleButton *togglebtn);
void wifi_connect(void);
void wifi_disconnect(void);
void set_wifi_state(void);
GtkWidget *create_treeview_wifi(void);
void add_columns(GtkTreeView *treeview_wifi, GtkTreeModel *items_model);
GtkTreeModel *create_item_model(void);
void add_items(void);
gboolean set_wifi_connect_label(void);
void get_connect_information(char *wifi_info);
int get_wifi_num(void);
int get_wifi_now(char *buf_wifi_status_now);
GtkWidget *get_sys_wifi_info_fix(void);
gboolean get_whether_have_wifi_model(void);
void delete_nmcli_connection_show(void);
pNode nmcli_connection_show_create_list(void);
void nmcli_connection_show_print_list(pNode head);
void nmcli_connection_show_start_delete(pNode head, int active_num);
void nmcli_connection_show_free_list(pNode head);
void buf_all_get_wifi_name(char buf_all[], char buf_name[]);
void buf_all_get_wifi_signal(char buf_all[], char buf_signal[]);
void buf_all_get_wifi_state(char buf_all[], char buf_state[]);
GtkWidget *create_g_treeview_wifi(void);
int nmcli_connection_show_get_active_num(void);
void g_btn_wifi_start_toggled(GtkToggleButton *togglebtn);

G_END_DECLS
#endif
